package com.taldh.mutlithread;

import java.util.concurrent.locks.LockSupport;

public class LockSupportTest {
    public static void main(String[] args) {
        Object obj = new Object();
        for (int i = 0; i < 10; i++) {
            LockSupport.parkNanos(obj, 10_0000_0000);
            System.out.println("我不会一下子执行完，我会阻塞住。" );
        }
    }
}
